Check
AutomatR.Windows.Activities.Check
The "Check" activity in AutomatR for Windows UI Automation allows you to interact with checkboxes by either selecting or clearing them. This activity is useful for automating UI interactions involving checkboxes in Windows applications.
Properties
Name | Description |
---|---|
Input | |
Check | Enables checking or unchecking the selected UI element. Boolean variables indicating whether to check (True) or uncheck (False) the checkbox. |
Windows Selector | Specifies the selector that identifies the target checkbox within the Windows application. It helps in uniquely identifying the UI element. String variables containing the selector. |
Windows Element | Indicates the UI element on the app with the help of the window selector window. InArgument<Selector> variables containing the UI element information. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Timeout | Specifies the time limit in seconds for the activity to be executed before throwing an exception. Integer variables containing the timeout duration. If not provided, the default timeout is used. |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Check" activity onto the workflow.
- Configure the properties by specifying either the Windows Selector or the Windows Element to identify the target checkbox.
- Provide the Check input to determine whether to check or uncheck the checkbox.
- Optionally, configure the timeout and delay settings.
- Execute the workflow to perform the checkbox interaction based on the provided configuration.
Example: Consider an example where the "Check" activity is used to check a checkbox in a Windows application:
Check:
Display Name: "Check Confirmation"
Windows Selector: "[Selector to identify the checkbox]"
Check: True
Timeout: 10
In this example, the activity uses the specified selector to identify the target checkbox, checks it, and sets a timeout of 10 seconds for the operation.